/*    */ package com.zimbra.cs.client.soap;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.soap.DomUtil;
/*    */ import com.zimbra.common.soap.MailConstants;
/*    */ import com.zimbra.cs.client.LmcNote;
/*    */ import org.dom4j.DocumentHelper;
/*    */ import org.dom4j.Element;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class LmcCreateNoteRequest
/*    */   extends LmcSoapRequest
/*    */ {
/*    */   private String mPosition;
/*    */   private String mParentID;
/*    */   private String mColor;
/*    */   private String mContent;
/*    */   
/* 38 */   public void setParentID(String id) { this.mParentID = id; }
/* 39 */   public void setPosition(String p) { this.mPosition = p; }
/* 40 */   public void setColor(String c) { this.mColor = c; }
/* 41 */   public void setContent(String c) { this.mContent = c; }
/*    */   
/* 43 */   public String getParentID() { return this.mParentID; }
/* 44 */   public String getColor() { return this.mColor; }
/* 45 */   public String getContent() { return this.mContent; }
/* 46 */   public String getPosition() { return this.mPosition; }
/*    */   
/*    */   protected Element getRequestXML()
/*    */   {
/* 50 */     Element request = DocumentHelper.createElement(MailConstants.CREATE_NOTE_REQUEST);
/* 51 */     Element f = DomUtil.add(request, "note", "");
/* 52 */     Element c = DomUtil.add(f, "content", this.mContent);
/* 53 */     addAttrNotNull(f, "pos", this.mPosition);
/* 54 */     addAttrNotNull(f, "l", this.mParentID);
/* 55 */     addAttrNotNull(f, "color", this.mColor);
/* 56 */     return request;
/*    */   }
/*    */   
/*    */   protected LmcSoapResponse parseResponseXML(Element responseXML)
/*    */     throws ServiceException
/*    */   {
/* 62 */     Element noteElem = DomUtil.get(responseXML, "note");
/* 63 */     LmcNote f = parseNote(noteElem);
/* 64 */     LmcCreateNoteResponse response = new LmcCreateNoteResponse();
/* 65 */     response.setNote(f);
/* 66 */     return response;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/client/soap/LmcCreateNoteRequest.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */